﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Media;

namespace Kokomo.Controls
{
	public class Connector : FrameworkElement
	{
		static Connector()
		{
			DefaultStyleKeyProperty.OverrideMetadata(typeof(Connector), new FrameworkPropertyMetadata(typeof(Connector)));
		}

		public Pen Stroke
		{
			get { return (Pen)GetValue(StrokeProperty); }
			set { SetValue(StrokeProperty, value); }
		}

		// Using a DependencyProperty as the backing store for Stroke.  This enables animation, styling, binding, etc...
		public static readonly DependencyProperty StrokeProperty =
			DependencyProperty.Register("Stroke", typeof(Pen), typeof(Connector), new UIPropertyMetadata(null));



		public object TargetItem
		{
			get { return (object)GetValue(TargetItemProperty); }
			set { SetValue(TargetItemProperty, value); }
		}

		// Using a DependencyProperty as the backing store for TargetItem.  This enables animation, styling, binding, etc...
		public static readonly DependencyProperty TargetItemProperty =
			DependencyProperty.Register("TargetItem", typeof(object), typeof(Connector), new UIPropertyMetadata(null));

		internal Geometry geometry;
	}
}
